From 9db4447f3a25a73ddf55d2470bbbb96689e6adf2 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Thu, 29 Jun 2006 05:50:50 +0000 Subject: [PATCH] Change category parameter range into '1'..'16'. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2176 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/garmin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/garmin.c b/gpsbabel/garmin.c index a7a521924..34d53225c 100644 --- a/gpsbabel/garmin.c +++ b/gpsbabel/garmin.c @@ -57,7 +57,7 @@ arglist_t garmin_args[] = { { "power_off", &poweroff, "Command unit to power itself down", NULL, ARGTYPE_BOOL, ARG_NOMINMAX}, { "category", &category, "Category number to use for written waypoints", - NULL, ARGTYPE_INT, "0", "15"}, + NULL, ARGTYPE_INT, "1", "16"}, ARG_TERMINATOR }; @@ -569,7 +569,7 @@ waypoint_write(void) way[i]->time_populated = 1; } if (category) { - way[i]->category = 1 << atoi(category); + way[i]->category = 1 << (atoi(category) - 1); } #if SOON garmin_fs_garmin_before_write(wpt, way[i], gps_waypt_type); -- 2.30.2